package cn.scw.common.separate.model;

import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;

/**
 * 到账通知模板消息实体
 */
@Data
@EqualsAndHashCode(callSuper = false)
public class MessageTemplateModel implements Serializable {

    private static final long serialVersionUID = -1850094737487908110L;

    private Model first;

    private Model keyword1;

    private Model keyword2;

    private Model keyword3;

    private Model keyword4;

    private Model remark;

    @Data
    @EqualsAndHashCode(callSuper = false)
    public static class Model implements Serializable {

        private static final long serialVersionUID = -3419751113099945566L;

        private String value;

        private String color = "#173177";

        public static Model init(String value) {
            Model model = new Model();
            model.setValue(value);
            return model;
        }

        public static Model init(String value, String color) {
            Model model = new Model();
            model.setValue(value);
            model.setColor(color);
            return model;
        }
    }
}
